-
Couldn't load subscription status.
- Fork 9.8k
[Enhancement] aws_lb_listener_rule: Add transform configuration block
#44702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Enhancement] aws_lb_listener_rule: Add transform configuration block
#44702
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
5306aa8 to
03657ae
Compare
a07d792 to
500235b
Compare
|
I rebased this branch onto the latest main branch and resolved conflicts that were caused by the merge of my other PR (#44741). $ make testacc TESTS='TestAccELBV2ListenerRule_transform' PKG=elbv2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f-aws_lb_listener_rule-add_transform 🌿...
TF_ACC=1 go1.24.8 test ./internal/service/elbv2/... -v -count 1 -parallel 20 -run='TestAccELBV2ListenerRule_transform' -timeout 360m -vet=off
2025/10/28 02:40:17 Creating Terraform AWS Provider (SDKv2-style)...
2025/10/28 02:40:17 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN TestAccELBV2ListenerRule_transform
=== PAUSE TestAccELBV2ListenerRule_transform
=== CONT TestAccELBV2ListenerRule_transform
--- PASS: TestAccELBV2ListenerRule_transform (288.16s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/elbv2 292.738s |
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
Add a
transformconfiguration block to theaws_lb_listener_ruleresource and data source.AWS API Behavior and Provider Implementation
rewritefield is defined as an array; however, the AWS API accepts only onerewriteentry.MaxItemsforrewriteis set to1in the schema definition.ResetTransform = trueparameter must be passed to theModifyRuleAPI. The provider implementation uses this parameter to remove the transform configuration.rewrite.regexandrewrite.replaceare0and1, respectively.These constraints are not clearly documented in the API reference but are derived from the descriptions shown in the AWS Management Console.
Documentation
transformblock is added.Relations
Closes #44675
References
API documentation
User documentation
Output from Acceptance Testing
Resource
Data Source